package org.lq.his.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LqFormatDateUtils {
	public Date FormatDate(Date date) {
		Date d = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			d = sdf.parse(sdf.format(date));
		} catch (Exception e) {
			
		}
		System.err.println(d);
		return d;
	}
	public Date getTodayDate() {
		Date d = null;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		try {
			d = sdf.parse(sdf.format(new Date()));
		} catch (Exception e) {
			
		}
		return d;
	}
}
